package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */

/**
 * 食材表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
/*@TableName("ingredients")*/
public class Ingredients implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Ingredients_id", type = IdType.AUTO)
    private Integer ingredientsId;

    /**
     * 食材名称
     */
    @TableField("Ingredients_name")
    private String ingredientsName;

    /**
     * 食材数量
     */
    @TableField("Ingredients_conut")
    private Integer ingredientsConut;
    @TableField("Ingredients_company")
    private String IngredientsCompany;
    @TableField("Ingredientstype_id")
    private Integer IngredientstypeId;
    @TableField("Ingredientstype_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date IngredientstypeDate;

    private Integer business_id;
}
